<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:r="http://ricchieri.com/facelets"
	xmlns:p="http://primefaces.org/ui">
<h:head>
</h:head>
<h:body>


	<ui:composition template="../../templates/commonLayoutOther.xhtml">
		<ui:define name="title">#{msg.titleOther}</ui:define>
		<ui:define name="content">
			<h:form id="addTemplate">
				<h2>#{msg.addEmailTemplate}</h2> 
				<r:commonEmailTemplate manageBean="#{addEmailMB}" form="addTemplate"/>
				
				<h:panelGrid columns="2" width="10%">
					<h:outputLabel value="Principal"/>
					<p:selectBooleanCheckbox value="#{addEmailMB.emailTemplate.isDefault}" /> 
				</h:panelGrid>
				
				<h:panelGrid columns="2" style="margin-top:10px; text-align:center">
					<p:commandButton id="reset" value="#{msg.resetButton}" type="reset"
						ajax="false" styleClass="button-action green"/>
					<p:commandButton id="search" value="#{msg.addButton}"
						action="#{addEmailMB.save}" ajax="false"
						styleClass="button-action green"/>
				</h:panelGrid>
			</h:form>
		</ui:define>
	</ui:composition>
</h:body>
</html>
